<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="resources/jquery-1.6.min.js"></script>
<script type="text/javascript">
$(function(){
	$("#btn1").click(function(){	
		$.ajax({
			url:'task/level3',
			statusCode:{
				404:function(){
					alert("no result found");
				},
				200:function(result){
					alert(result);
				}
			}
		});
	});
	$("#btn2").click(function(){	
		$.ajax({
			url:'task/level1and3',
			statusCode:{
				404:function(){
					alert("no result found");
				},
				200:function(result){
					alert(result);
				}
			}
		});
	});
});
</script>
</head>
<body>
<button id="btn1">添加一个level3</button>
<button id="btn2">添加一个level1和level3</button>
</body>

</html>


